package models

import (
	"gorm.io/gorm"
	"time"
)

type Msg struct {
	Code int
	Msg  string
	Data any
}
type Good struct {
	gorm.Model
	Name    string
	ShopsId int
	Price   float64
	Data    string
}
type Activity struct {
	gorm.Model
	Address string
	Theme   string
	ShopId  int
	OpenAt  time.Time
	EndAt   time.Time
	Data    string
	Price   float64
}
type Shop struct {
	gorm.Model
	Address string
	Manager string
	Name    string
}
type GImage struct {
	Image  string
	FromId int
}
type AImage struct {
	Image  string
	FromId int
}
type SImage struct {
	Image  string
	FromId int
}
type Comment struct {
	UserId int
	FromId int
	Data   string
	gorm.Model
}
type User struct {
	gorm.Model
	UserName    string
	UserAccount string
	UserPass    string
}
